# $Id: PKGBUILD 83671 2013-02-04 11:04:22Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=echat
pkgver=0.04beta1
pkgrel=3
pkgdesc="vypress compatible ncurses chat (can work without server)"
arch=('i686' 'x86_64')
url="http://echat.deep.perm.ru/"
license=(GPL)
depends=(ncurses)
source=(http://echat.deep.perm.ru/files/echat-$pkgver.tar.gz)
md5sums=('dda3891d08f04dd266858380d404af15')

#
# see also:
#   url="http://www.vypress.com/products/chat/unix/"
#   url="http://pupykins.googlepages.com/" - contains also improoved version (utf8 and some more features)
#   source=(http://www.vypress.com/ftp/clones/vyc/echat/${pkgname}-${pkgver}.tgz) - actualy not gzipped tar
#

build() {
  cd $srcdir/$pkgname-${pkgver}
  make
  install -D -m 0755 echat $pkgdir/usr/bin/echat
  install -D -m 0644 doc/echat.1 $pkgdir/usr/share/man/man1/echat.1
  install -D -m 0644 doc/.echatrc.sample $pkgdir/usr/share/echat/dot.echatrc.sample
}
